//
//  NoLoginView.m
//  QuickCure1
//
//  Created by Ashzenki on 02/11/2016.
//  Copyright © 2016 maoge. All rights reserved.
//

#import "NoLoginView.h"

@interface NoLoginView ()

@property (weak, nonatomic) IBOutlet UIButton *button;
@property (weak, nonatomic) IBOutlet UIImageView *iv_close;


@end

@implementation NoLoginView

+ (instancetype)noLoginView {
    
    return [[NSBundle mainBundle] loadNibNamed:@"NoLoginView" owner:nil options:nil].lastObject;
}


- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.layer.cornerRadius = 10;
    self.clipsToBounds = YES;
    
    _button.layer.cornerRadius = 10;
    _button.clipsToBounds = YES;
    
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tap)];
    
    [_iv_close addGestureRecognizer:tap];
}

- (void)tap {
    
    NSLog(@"!!!");
    
    [self sendActionsForControlEvents:UIControlEventValueChanged];
}

- (IBAction)clickButton:(id)sender {
    
    [[NSNotificationCenter defaultCenter] postNotificationName:@"buttonClicked" object:nil];
}



@end


































